{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li {if $type =='member'} class="active" {/if}><a href="{php echo web_url('wlsign/signset/signrecord',array('type'=>'member'))}">用户列表</a></li>
	<li {if $type =='record'} class="active" {/if}><a href="{php echo web_url('wlsign/signset/signrecord',array('type'=>'record'))}">签到记录</a></li>
<!--	<li {if $type =='receive'} class="active" {/if}><a href="{php echo web_url('wlsign/signset/signrecord',array('type'=>'receive'))}">奖励记录</a></li>-->
</ul>
<div class="app-content">
	{if $type=='member'}
	<div class="app-filter">
		<div class="filter-list">
			<form action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
	            <input type="hidden" name="a" value="entry" />
	            <input type="hidden" name="m" value="{MODULE_NAME}" />
	            <input type="hidden" name="p" value="wlsign" />
				<input type="hidden" name="ac" value="signset" />
				<input type="hidden" name="do" value="signrecord"/>
				<input type="hidden" name="type" value="member"/>
				<div class="form-group form-inline">
					<label class="col-sm-2 control-label">用户筛选</label>
					<div class="col-sm-9">
						<select name="keywordtype" class="form-control">
							<option value="">关键字类型</option>
							<option value="1" {if $_GPC['keywordtype']==1}selected="selected"{/if}>用户昵称</option>
							<option value="2" {if $_GPC['keywordtype']==2}selected="selected"{/if}>签到次数大于</option>
							<option value="3" {if $_GPC['keywordtype']==3}selected="selected"{/if}>签到次数小于</option>
							<option value="4" {if $_GPC['keywordtype']==4}selected="selected"{/if}>签到积分大于</option>
							<option value="5" {if $_GPC['keywordtype']==5}selected="selected"{/if}>签到积分小于</option>
						</select>
						<input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}"  placeholder="请输入关键字"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary">筛选</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th class="text-center" style="width:100px;">ID</th>
					<th class="text-center" style="width:400px;">用户信息</th>
					<th class="text-center" style="width:100px;">签到次数(连续)</th>
					<th class="text-center" style="width:100px;">签到次数(总)</th>
					<th class="text-center" style="width:140px;">总积分</th>
					<th class="text-center" style="width:240px;">创建时间</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr class="text-center" >
					<td>{$item['id']}</td>
					<td>
						<div class="img" style="text-align: left;padding-left: 2rem;">
							<img style="height: 50px;width: 50px;" class="scrollLoading" src="{IMAGE_PIXEL}" data-url="{php echo tomedia($item['avatar'])}">
							<span> {$item['nickname']}</span>
						</div>
					</td>
					<td>{$item['times']}次</td>
					<td>{$item['totaltimes']}次</td>
					<td>
						{$item['integral']}
					</td>
					<td>
						{php echo date('Y-m-d H:i:s',$item['createtime'])}
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
	{/if}
	{if $type=='record'}
	<div class="app-filter">
		<div class="filter-list">
			<form action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
	            <input type="hidden" name="a" value="entry" />
	            <input type="hidden" name="m" value="{MODULE_NAME}" />
	            <input type="hidden" name="p" value="wlsign" />
				<input type="hidden" name="ac" value="signset" />
				<input type="hidden" name="do" value="signrecord"/>
				<input type="hidden" name="type" value="record"/>
				<div class="form-group form-inline">
					<label class="col-sm-2 control-label">用户筛选</label>
					<div class="col-sm-9">
						<select name="keywordtype" class="form-control">
							<option value="">关键字类型</option>
							<option value="1" {if $_GPC['keywordtype']==1}selected="selected"{/if}>用户昵称</option>
						</select>
						<input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}"  placeholder="请输入关键字"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">签到时间</label>
					<div class="col-sm-9">
						{php echo tpl_select_time_info('time_limit', array('starttime' => date('Y-m-d',$starttime), 'endtime' => date('Y-m-d', $endtime)));}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary">筛选</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th class="text-center" style="width:100px;">ID</th>
					<th class="text-center" style="width:400px;">用户信息</th>
					<th class="text-center" style="width:120px;">签到日期</th>
					<th class="text-center" style="width:120px;">获得积分</th>
					<th class="text-center" style="width:240px;">签到时间</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr class="text-center" >
					<td>{$item['id']}</td>
					<td>
						<div class="img" style="text-align: left;padding-left: 2rem;">
							<img style="height: 50px;width: 50px;" class="scrollLoading" src="{IMAGE_PIXEL}" data-url="{php echo tomedia($item['avatar'])}">
							<span> {$item['nickname']}</span>
						</div>
					</td>
					<td>{$item['date']}</td>
					<td>{$item['reward']}</td>
					<td>
						{php echo date('Y-m-d H:i:s',$item['createtime'])}
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
	{/if}
	{if $type=='receive'}
	<div class="app-filter">
		<div class="filter-list">
			<form action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
	            <input type="hidden" name="a" value="entry" />
	            <input type="hidden" name="m" value="{MODULE_NAME}" />
	            <input type="hidden" name="p" value="wlsign" />
				<input type="hidden" name="ac" value="signset" />
				<input type="hidden" name="do" value="signrecord"/>
				<input type="hidden" name="type" value="receive"/>
				<div class="form-group form-inline">
					<label class="col-sm-2 control-label">用户筛选</label>
					<div class="col-sm-9">
						<select name="keywordtype" class="form-control">
							<option value="">关键字类型</option>
							<option value="1" {if $_GPC['keywordtype']==1}selected="selected"{/if}>用户昵称</option>
							<option value="2" {if $_GPC['keywordtype']==2}selected="selected"{/if}>累计次数</option>
							<option value="3" {if $_GPC['keywordtype']==3}selected="selected"{/if}>奖励积分</option>
						</select>
						<input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}"  placeholder="请输入关键字"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">领取时间</label>
					<div class="col-sm-9">
						{php echo tpl_select_time_info('time_limit', array('starttime' => date('Y-m-d',$starttime), 'endtime' => date('Y-m-d', $endtime)));}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary">筛选</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th class="text-center" style="width:100px;">ID</th>
					<th class="text-center" style="width:350px;">用户信息</th>
					<th class="text-center" style="width:100px;">累计月份</th>
					<th class="text-center" style="width:100px;">累计次数</th>
					<th class="text-center" style="width:100px;">奖励积分</th>
					<th class="text-center" style="width:150px;">领取时间</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr class="text-center" >
					<td>{$item['id']}</td>
					<td>
						<div class="img" style="text-align: left;padding-left: 2rem;">
							<img style="height: 50px;width: 50px;" class="scrollLoading" src="{IMAGE_PIXEL}" data-url="{php echo tomedia($item['avatar'])}">
							<span> {$item['nickname']}</span>
						</div>
					</td>
					<td>{$item['date']}</td>
					<td>{$item['total']}</td>
					<td>{$item['reward']}</td>
					<td>
						{php echo date('Y-m-d H:i:s',$item['createtime'])}
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
	{/if}
</div>
{php include wl_template('common/footer');}